﻿namespace Stashy.Models
{
    using System;
    using System.ComponentModel;
    using StashyLib;
using System.ComponentModel.DataAnnotations;

    public class Todo
    {
        public Nuid Id { get; set; }
        
        [Required]
        public string Description { get; set; }

        [DisplayName("Due date")]
        public DateTime? DueDate { get; set; }

        [DisplayName("Done?")]
        public bool IsDone { get; set; }
    }

    public class Task
    {
        public int Id { get; set; }

        [Required]
        public string Description { get; set; }

        [DisplayName("Completed date")]
        public DateTime? CompletedDate { get; set; }

        [DisplayName("Start date")]
        public DateTime? StartDate { get; set; }

        [DisplayName("Estimate (hours)")]
        public int EstimateHours { get; set; }
    }

    public class Bug
    {
        public int Id { get; set; }

        [Required]
        public string Details { get; set; }

        [DisplayName("Date fixed")]
        public DateTime? FixDate { get; set; }

        [DisplayName("Date lodged")]
        public DateTime CreatedDate { get; set; }
    }
}